﻿using System;
using System.Collections.Generic;
using System.Text;
using Sinacor.Infra.UI.Settings;
using System.Windows;
using PSE.Framework.UI.Settings;

namespace Sinacor.Infra.UI.Controls.SmartClient
{
    public class SinacorExpanderConfigurationItem
    {
        string height;
        string width;
        double rowMinHeight;
        bool isExpanded;
        bool isPinned;
        string expanderName;

        public double RowMinHeight
        {
            get {return rowMinHeight;}
            set {rowMinHeight = value;}
        }

        public string Height
        {
            get { return height; }
            set { height = value; }
        }

        public string Width
        {
            get { return width; }
            set { width = value; }
        }    
    
        public bool IsExpanded 
        {
            get { return isExpanded; }
            set { isExpanded = value; }
        }

        public bool IsPinned
        {
            get { return isPinned; }
            set { isPinned = value; }
        }

        public string ExpanderName
        {
            get { return expanderName; }
            set { expanderName = value; }
        }

    }

    public class SinacorExpanderConfiguration : IConfigurationObject<SinacorConfigurationObjectType>
    {

        #region Constructor

        public SinacorExpanderConfiguration()
        {
            this.Itens = new List<SinacorExpanderConfigurationItem>();
        }

        #endregion

        #region IConfigurationObject<SinacorConfigurationObjectType> Members

        private string _configurationName = string.Empty;


        public string ConfigurationName
        {
            get
            {
                return _configurationName;
            }
            set
            {
                _configurationName = value;
            }
        }


        private SinacorConfigurationObjectType _configurationType = SinacorConfigurationObjectType.SinacorControl; 
        
        public SinacorConfigurationObjectType ConfigurationType
        {
            get 
            { 
                return _configurationType; 
            }
            set 
            { 
                _configurationType = value; 
            }
        }

        #endregion


        public List<SinacorExpanderConfigurationItem> Itens;

    }
}

